import 'package:provider/provider.dart';
import 'local_provider.dart';

import '../public.dart';

/// 全局provider
class GlobalProvider {
  static List<ChangeNotifierProvider> getProviders() {
    return [
      ChangeNotifierProvider<ThemeProvider>(
        create: (context) => ThemeProvider(),
      ),
      ChangeNotifierProvider<LocalProvider>(
        create: (context) => LocalProvider(),
      ),
      ChangeNotifierProvider<UserProvider>(
        create: (context) => UserProvider(),
      ),
      ChangeNotifierProvider<UserRecordProvider>(
        create: (context) => UserRecordProvider(),
      ),
      ChangeNotifierProvider<UserAccountProvider>(
        create: (context) => UserAccountProvider(),
      )
    ];
  }
}
